package com.zsgeek.dao;



import com.zsgeek.db.DBUtils;
import com.zsgeek.entity.Operation_conf;

public class Operation_confDao {

	/**
	 * 插入
	 * 
	 * @param user
	 * @return
	 */
	public static int add(Operation_conf operation_conf) {

		String sql = "INSERT INTO operation_conf"
				+ "(siteId,gateWayType,searchCatalog,productKeyword,productTitle,"
				+ "searchPages,productUrl,productAsin,sellerCode,totalPayment,"
				+ "buyQty,remainedQty,orderType,reviewAfterDays,reviewStarLevel,"
				+ "reviewTitle,reviewContent,feedbackStarLevel,feedbackContent,question,"
				+ "promotionalCode,remark,startupTime,status,paymentType,"
				+ "updateTime,userId,transaction_no,needTrackingNumber) VALUES "
				+ "(?,?,?,?,?,?,?,?,?,?,?,"
				+ "?,?,?,?,?,?,?,?,?,?,"
				+ "?,?,?,?,?,?,?,?)";
		return  DBUtils.executeUpdate(sql, 
				operation_conf.getSiteId(),
				operation_conf.getGateWayType(),
				operation_conf.getSearchCatalog(),
				operation_conf.getProductKeyword(),
				operation_conf.getProductTitle(),
				operation_conf.getSearchPages(),
				operation_conf.getProductUrl(),
				operation_conf.getProductAsin(),
				operation_conf.getSellerCode(),
				operation_conf.getTotalPayment(),
				operation_conf.getBuyQty(),
				operation_conf.getRemainedQty(),
				operation_conf.getOrderType(),
				operation_conf.getReviewAfterDays(),
				operation_conf.getReviewStarLevel(),
				operation_conf.getReviewTitle(),
				operation_conf.getReviewContent(),
				operation_conf.getFeedbackStarLevel(),
				operation_conf.getFeedbackContent(),
				operation_conf.getQuestion(),
				operation_conf.getPromotionalCode(),
				operation_conf.getRemark(),
				operation_conf.getStartupTime(),
				operation_conf.getStatus(),
				operation_conf.getPaymentType(),
				operation_conf.getUpdateTime(),
				operation_conf.getUserId(),
				operation_conf.getTransaction_no(),
				operation_conf.getNeedTrackingNumber());
	}
	
	
}
